package my.test.lookup.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Spring 常用注解之@Lookup:
 * https://developer.aliyun.com/article/1122030
 * 相关单元测试类:
 * org.springframework.beans.factory.annotation.LookupAnnotationTests
 * org.springframework.beans.factory.support.LookupMethodTests
 */
public class Main {
	public static void main(String[] args) {
		ApplicationContext bf = new ClassPathXmlApplicationContext("/my/test/lookup/bean/lookupTest.xml");
		GetBeanTest test=(GetBeanTest) bf.getBean("getBeanTest");
		test.showMe();
	}
}
